package com.ymatou.iapi.sellercs.parameter;

public enum  MessageAttachType {
	None(0),
    AppOrder(1),
    AppTips(2),
    AppProduct(5),
    MatouOrder(21),
    MatouProduct(25),
    TransferTip(26),
    RiskUrl(27);

    private int value = 0;

    private MessageAttachType(int value) {
        this.value = value;
    }

    public int value() {
        return this.value;
    }

    public static MessageAttachType valueOf(int value) {
        switch(value) {
        case 0:
            return None;
        case 1:
            return AppOrder;
        case 2:
            return AppTips;
        case 3:
        case 4:
        case 6:
        case 7:
        case 8:
        case 9:
        case 10:
        case 11:
        case 12:
        case 13:
        case 14:
        case 15:
        case 16:
        case 17:
        case 18:
        case 19:
        case 20:
        case 22:
        case 23:
        case 24:
        default:
            return null;
        case 5:
            return AppProduct;
        case 21:
            return MatouOrder;
        case 25:
            return MatouProduct;
        case 26:
            return TransferTip;
        case 27:
            return RiskUrl;
        }
    }

}
